<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Insert title here</title>
</head>
<body>
	<%
		String pname = (String)request.getAttribute("p");
		out.println(pname);
	%>
	<br><br>
	拿到其他......该产品的详细参数参数
	<br><br>
	<form action="<%=request.getContextPath()%>/addcar.pdo">
		<input type="hidden" name="pname" value="<%=pname %>">
		<input style="width:80px; height:30px; background:red; color:#fff;" type="submit" value="加入购物车">
	</form>	
</body>
</html>